<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <style>
        body{
            margin-bottom:50px;
        }
        .page-title{
            background: #ffffff none repeat scroll 0 0;
            box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(0, 0, 0, 0.05);
            clear: both;
            height: 43px;
            line-height:43px;
            padding: 0 20px;
        }
    </style>
    <div class="page-title">
        一般設備R
    </div>
    <div id="container" class="container">
        <div class="pagebg"></div>
        <div class="pagemain">
            <div class="panel panel-default">
                <div class="panel-heading">
                    一般設備R
                </div>
                <div contenteditable="true" class="panel-body">
                    <div>
                        <p style="text-align: center;"><span style="font-size: 16px;">裝置代號: &nbsp;{$row.devicename} &nbsp; 裝置名稱: {$row.deviceselfname}&nbsp; &nbsp; &nbsp;類型:&nbsp;<span style="color: rgb(51, 51, 51); ">{$row.smallcategoryname}</span></span> </p>
                    </div>
                </div>
            </div>
            <div class="row base row-fluid clearfix">
                <div class="col-md-12">
                    <div>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">告警開關</label>
                <div class="col-xs-12 col-sm-8">

                    <div class="radio">
                        {foreach name="warningSwitchList" item="vo"}
                        <label for="row[warning_switch]-{$key}">
                            <input id="row[warning_switch]-{$key}" name="row[warning_switch]" type="radio" value="{$key}" {in name="key" value="$row.warning_switch"}checked{/in} /> {$vo}
                        </label>
                        {/foreach}
                    </div>

                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">告警時機</label>
                <div class="col-xs-12 col-sm-8">

                    <div class="radio">
                        {foreach name="warningTypeList" item="vo"}
                        <label for="row[warning_type]-{$key}">
                            <input id="row[warning_type]-{$key}" name="row[warning_type]" type="radio" value="{$key}" {in name="key" value="$row.warning_type"}checked{/in} /> {$vo}
                        </label>
                        {/foreach}
                    </div>

                </div>
            </div>
            <div class="row base row-fluid clearfix">
                <div class="col-md-12">
                    <div>
                    </div>
                    <div class="row base row-fluid clearfix">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">告警狀態</label>
                                <div class="col-xs-12 col-sm-8">

                                    <div class="radio">
                                        {foreach name="warningStatusList" item="vo"}
                                        <label for="row[warning_status]-{$key}">
                                            <input id="row[warning_status]-{$key}" name="row[warning_status]" type="radio" value="{$key}" {in name="key" value="$row.warning_status"}checked{/in} /> {$vo}
                                        </label>
                                        {/foreach}
                                    </div>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row base row-fluid clearfix">
                <div class="col-md-12">
                    <div>
                    </div>
                    <div class="form-group">
                        <label  class="col-xs-2 control-label">關聯裝置1</label>
                        <div class="col-xs-12 col-sm-8">
                            <input readonly value="{$row.device1name}" class="form-control text" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-xs-2 control-label">關聯裝置2</label>
                        <div class="col-xs-12 col-sm-8">
                            <input readonly value="{$row.device2name}" class="form-control text" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-xs-2 control-label">同時告警狀態</label>
                        <div class="col-xs-12 col-sm-8">

                            <div class="radio">
                                {foreach name="warning1StatusList" item="vo"}
                                <label for="row[warning1_status]-{$key}"><input id="row[warning1_status]-{$key}" name="row[warning1_status]" type="radio" value="{$key}" {in name="key" value="$row.warning1_status"}checked{/in} /> {$vo}</label>
                                {/foreach}
                            </div>

                        </div>
                    </div>
                </div>
            </div>
            <div class="row base row-fluid clearfix">
                <div class="col-md-12">
                    <div>
                    </div>
                    <div class="row base row-fluid clearfix">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">延遲時間</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input placeholder="請輸入延遲報警時間(分鐘)" autocomplete="off" name="row[delay_time]" value="{$row.delay_time}" id="429556" type="number" class="form-control text" />
                                </div>
                            </div>
                            <div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">重複報警</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input placeholder="請輸入重複報警時間(小時後)" autocomplete="off" name="row[replay_time]" value="{$row.replay_time}" id="112652" type="number" class="form-control text" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <!--<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>-->
        </div>
    </div>
</form>
